package wang.chunfan.springcloud.learning.sentinel.server.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import wang.chunfan.springcloud.learning.sentinel.server.feign.UserFeign;
import wang.chunfan.springcloud.learning.sentinel.server.model.Result;
import wang.chunfan.springcloud.learning.sentinel.server.model.User;

/**
 * @version 1.0
 * @Author wangchunfan
 * @Date 2020/5/28 10:10
 **/
@RestController
@RequestMapping("/user")
public class FeignController {
//    @Autowired
//    UserFeign userFeign; // 注入失败
//
//    @RequestMapping("/{id}")
//    public Result<User> get(@PathVariable Long id) {
//        return userFeign.get(id);
//    }
}
